@extends("home.layouts")

@section("content")
	<div class="container">
  <ul class="breadcrumb">
        <li><a href="http://shop14.jccms.cn/index.php?route=common/home"><i class="fa fa-home"></i></a></li>
        <li><a href="http://shop14.jccms.cn/index.php?route=account/account">賬戶1</a></li>
      </ul>
    <div class="row">
     <div id="content" class="col-sm-9">      
        <h2>购物车</h2>
        <div class="table-responsive">

        <table class="table table-bordered table-hover">
          <tbody>
            @foreach($datas as $v)
            <tr>
              <td class="text-center"><a href="{{ route('goods.show', $v->goods->id)}}"><img width=50; height=50 src="{{ Storage::url($v->goods->cover_img) }}"></a></td>
              <td class="text-center">
                <a href="{{route('goods.show', $v->goods->id)}}" >{{ $v->goods->name }}</a>
              </td>
              <td class="text-center">{{ $v->quantity }}</td>
              <td class="text-center">{{ $v->goods->price }}</td>
              <td class="text-center"><!-- <a href="{{ route('address.edit', $v) }}" class="btn btn-info">編輯</a> &nbsp; --> <a data-type="delete" href="javascript:;" data-url="{{ route('carts.destroy', $v) }}" class="btn btn-danger">刪除</a>
              </td>
            </tr>
            @endforeach
          </tbody>
        </table>
      </div>

      <!-- <div class="buttons clearfix">
        <div class="pull-left"><a href="http://shop14.jccms.cn/index.php?route=account/account" class="btn btn-default">返回</a></div>
        <div class="pull-right"><a href="{{ route('address.create') }}" class="btn btn-primary"></a></div>
      </div> -->
      </div>
</div>
</div>
@endsection